

<title>客户模板</title>
  
<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>短信设置</cite></a>
    <a><cite>客户模板</cite></a>
  </div>
</div>

<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-card-header">
      客户模板
      <button type="button" class="layui-btn layui-btn-xs add">
        + 添加模板
      </button>
    </div>
    <div class="layui-card-body">
      <div class="layui-clear layui-form" lay-filter="sms-form-ct">
        <div class="layui-form-item searchBox layui-clear">
          <div class="searchType">客户名称</div>
          <input type="text" name="name" autocomplete="off" class="layui-input searchInput">
          <button class="layui-btn searchButton" lay-submit lay-filter="ct-search">
            搜 索
          </button>
        </div>
        <div class="searchReset">重 置</div>
      </div>
    </div>
    <div class="layui-card-body">
      <table id="smsct" lay-filter="smsct" ></table>
      <script type="text/html" id="buttonTpl">
        {{#  if(d.status == '正常'){ }}
          <button class="layui-btn layui-btn-normal layui-btn-xs">正常</button>
        {{#  } else if(d.status == '禁用'){ }}
          <button class="layui-btn layui-btn-primary layui-btn-xs">禁用</button>
        {{#  } else{ }}
          <button class="layui-btn layui-btn-warm layui-btn-xs">审核中</button>
        {{#  } }}
      </script>
      <script type="text/html" id="table-client-tem">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
      </script>
    </div>
  </div>
</div>

<script>
layui.use('smsct', layui.factory('smsct')).use(['admin', 'smsct', 'table'], function(){
  var $ = layui.$
  ,form = layui.form
  ,table = layui.table;
  
  form.render(null, 'sms-form-ct');

});
</script>